package com.xyoto.community.enums;

public enum QuestionsEnum implements Code {

    QUESTIONS_IS_NULL(1020,"问答不存在"),
    QUESTIONS_COMMENT_FAILED(1021,"问答评论失败"),
    QUESTIONS_REPLY_FAILED(1022,"问答回复失败"),
    QUESTIONS_ADD_ERROR(1023,"问答添加失败"),
    QUESTION_COMMENTS_NOT_EXIST(1024, "问答评论不存在"),
    QUESTIONS_COMMENT_ID_ERROR(1025,"问答评论id不可用"),
    QUESTIONS_COMMENT_REPLY_ID_ERROR(1027,"问答评论回复id不可用"),
    DELETE_QUESTION_COMMENT_REPLY_FAILED(1028,"删除问答评论回复失败"),
    NOT_POWER(1029,"你个傻逼没权限"),
    QUESTIONS_COMMENT_REPLY_NOT_EXISTED(1030,"此回复不存在"),
    QUESTIONS_COMMENT_REPLY_IS_DELETE(1031,"此回复已删除"),
    QUESTIONS_COMMENT_NOT_EXISTED(1031,"此评论不存在"),
    QUESTIONS_COMMENT_IS_DELETE(1032,"此评论已删除"),
    QUESTIONS_IS_DELETE(1033,"问答已删除"),
    QUESTIONS_TALL_TOPIC_NOT_NULL(1034, "问答所属话题不存在"),
    QUESTIONS_COMMENT_REPLY_LOVE_IS_EXIST(1035,"已取消回复点赞"),
    QUESTIONS_COMMENT_LOVE_IS_EXIST(1036,"已取消评论点赞"),
    QUESTIONS_COMMENT_REPLY_LOVE_IS_NOT_EXIST(1037,"该回复未点赞")
    ;


    private int code;

    private String msg;

    QuestionsEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
